package org.goj.management.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.goj.common.entity.management.Mail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.goj.management.vo.AdminMailVO;

import java.util.List;

/**
 * <p>
 * 消息列表 Mapper 接口
 * </p>
 *
 * @author CK
 * @since 2021-04-23
 */
public interface MailMapper extends BaseMapper<Mail> {

    /**
     * 管理员查询竞赛消息
     *
     * @param queryWrapper 条件构造器
     * @return List<Mail>
     * @author CK
     * @date 2021/4/23 20:00
     */
    List<AdminMailVO> adminMailList(@Param(Constants.WRAPPER) QueryWrapper<Mail> queryWrapper);
}
